3.10 \(\int \frac {\csc ^6(x)}{i+\cot (x)} \, dx\)

Optimal. Leaf size=33 \[ -\frac {1}{4} \cot ^4(x)+\frac {1}{3} i \cot ^3(x)-\frac {\cot ^2(x)}{2}+i \cot (x) \]

[Out]

I*cot(x)-1/2*cot(x)^2+1/3*I*cot(x)^3-1/4*cot(x)^4

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3487, 43} \[ -\frac {1}{4} \cot ^4(x)+\frac {1}{3} i \cot ^3(x)-\frac {\cot ^2(x)}{2}+i \cot (x) \]

Antiderivative was successfully verified.

[In]

Int[Csc[x]^6/(I + Cot[x]),x]

[Out]

I*Cot[x] - Cot[x]^2/2 + (I/3)*Cot[x]^3 - Cot[x]^4/4

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 3487

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[1/(a^(m - 2)*b
*f), Subst[Int[(a - x)^(m/2 - 1)*(a + x)^(n + m/2 - 1), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b, e, f, n}, x
] && EqQ[a^2 + b^2, 0] && IntegerQ[m/2]

Rubi steps

\begin {align*} \int \frac {\csc ^6(x)}{i+\cot (x)} \, dx &=-\operatorname {Subst}\left (\int (i-x)^2 (i+x) \, dx,x,\cot (x)\right )\\ &=-\operatorname {Subst}\left (\int \left (-i+x-i x^2+x^3\right ) \, dx,x,\cot (x)\right )\\ &=i \cot (x)-\frac {\cot ^2(x)}{2}+\frac {1}{3} i \cot ^3(x)-\frac {\cot ^4(x)}{4}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 23, normalized size = 0.70 \[ -\frac {\csc ^4(x)}{4}+\frac {1}{3} i \cot (x) \left (\csc ^2(x)+2\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[x]^6/(I + Cot[x]),x]

[Out]

-1/4*Csc[x]^4 + (I/3)*Cot[x]*(2 + Csc[x]^2)

________________________________________________________________________________________

fricas [A]  time = 0.59, size = 36, normalized size = 1.09 \[ -\frac {4 \, {\left (4 \, e^{\left (2 i \, x\right )} - 1\right )}}{3 \, {\left (e^{\left (8 i \, x\right )} - 4 \, e^{\left (6 i \, x\right )} + 6 \, e^{\left (4 i \, x\right )} - 4 \, e^{\left (2 i \, x\right )} + 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(x)^6/(I+cot(x)),x, algorithm="fricas")

[Out]

-4/3*(4*e^(2*I*x) - 1)/(e^(8*I*x) - 4*e^(6*I*x) + 6*e^(4*I*x) - 4*e^(2*I*x) + 1)

________________________________________________________________________________________

giac [A]  time = 0.88, size = 24, normalized size = 0.73 \[ -\frac {-12 i \, \tan \relax (x)^{3} + 6 \, \tan \relax (x)^{2} - 4 i \, \tan \relax (x) + 3}{12 \, \tan \relax (x)^{4}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(x)^6/(I+cot(x)),x, algorithm="giac")

[Out]

-1/12*(-12*I*tan(x)^3 + 6*tan(x)^2 - 4*I*tan(x) + 3)/tan(x)^4

________________________________________________________________________________________

maple [A]  time = 0.30, size = 28, normalized size = 0.85 \[ -\frac {1}{2 \tan \relax (x )^{2}}+\frac {i}{3 \tan \relax (x )^{3}}-\frac {1}{4 \tan \relax (x )^{4}}+\frac {i}{\tan \relax (x )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csc(x)^6/(I+cot(x)),x)

[Out]

-1/2/tan(x)^2+1/3*I/tan(x)^3-1/4/tan(x)^4+I/tan(x)

________________________________________________________________________________________

maxima [A]  time = 0.64, size = 24, normalized size = 0.73 \[ \frac {12 i \, \tan \relax (x)^{3} - 6 \, \tan \relax (x)^{2} + 4 i \, \tan \relax (x) - 3}{12 \, \tan \relax (x)^{4}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(x)^6/(I+cot(x)),x, algorithm="maxima")

[Out]

1/12*(12*I*tan(x)^3 - 6*tan(x)^2 + 4*I*tan(x) - 3)/tan(x)^4

________________________________________________________________________________________

mupad [B]  time = 0.18, size = 25, normalized size = 0.76 \[ -\frac {{\mathrm {cot}\relax (x)}^4}{4}+\frac {{\mathrm {cot}\relax (x)}^3\,1{}\mathrm {i}}{3}-\frac {{\mathrm {cot}\relax (x)}^2}{2}+\mathrm {cot}\relax (x)\,1{}\mathrm {i} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(sin(x)^6*(cot(x) + 1i)),x)

[Out]

cot(x)*1i - cot(x)^2/2 + (cot(x)^3*1i)/3 - cot(x)^4/4

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(x)**6/(I+cot(x)),x)

[Out]

Timed out

________________________________________________________________________________________